package cn.rongdao.jrkabao.model.main.personal;

import com.mifengkong.frtools.http.request.HttpFunction;

import java.util.List;

import cn.rongdao.jrkabao.bean.main.personal.CompleteDataBean;
import cn.rongdao.jrkabao.model.api.BaseKaMaoModel;
import io.reactivex.Observable;
import io.reactivex.Observer;

/**
 * Created by jack on 2018/4/19
 */

public class CompleteDataModel extends BaseKaMaoModel {

    public static CompleteDataModel getInstance() {
        return getPresent(CompleteDataModel.class);
    }

    public void execute(Observer<List<CompleteDataBean>> observer) {
        Observable<List<CompleteDataBean>> observable = mServletApi.dataComplete(mParams).map(new HttpFunction<List<CompleteDataBean>>());
        toSubscribe(observable, observer);
    }
}
